from django.db import models

# Create your models here.


class Address(models.Model):
    """用户地址"""
    receiver = models.CharField(max_length=20, verbose_name='收货人')
    mobile = models.CharField(max_length=11, verbose_name='手机')
    place = models.CharField(max_length=50, verbose_name='地址')
    Receiving_dates = models.CharField(max_length=20, verbose_name='收货时间')
    is_deleted = models.BooleanField(default=False, verbose_name='逻辑删除')
    create_time = models.DateTimeField(auto_now_add=True, verbose_name="创建时间")
    update_time = models.DateTimeField(auto_now=True, verbose_name="更新时间")

    class Meta:
        db_table = 'tb_address'
        verbose_name = '用户地址'
        verbose_name_plural = verbose_name
        ordering = ['-update_time']